Fluent Assertions Documentation
FluentAssertions Namespace / AssertionExtensions Class / Enumerating Method / Enumerating<T,TResult>(T,Func<T,IEnumerable<TResult>>) Method
The object that exposes the method or property.
A reference to the method or property to force enumeration of.
In This Topic
    Enumerating<T,TResult>(T,Func<T,IEnumerable<TResult>>) Method
    In This Topic
    Forces enumerating a collection of the provided subject. Should be used to assert that a method that uses the yield keyword throws a particular exception.
    Syntax

    Parameters

    subject
    The object that exposes the method or property.
    enumerable
    A reference to the method or property to force enumeration of.

    Type Parameters

    T
    TResult
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also